package com.deco.service.product;

import com.deco.dao.domain.table.DicVehicle;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.deco.domain.vo.fix.FixTypeVo;
import com.deco.domain.vo.product.AccodeQueryLogVo;
import com.deco.domain.vo.product.CatagoryLogVo;
import com.deco.domain.vo.product.DicVehicleVo;
import com.deco.domain.vo.store.StoreJoinVo;
import com.deco.domain.vo.store.StoreShopVo;
import com.deco.logic.fix.FixTypeLogic;
import com.deco.logic.product.AccodeQueryLogLogic;
import com.deco.logic.product.CatagoryLogLogic;
import com.deco.logic.product.DicVehicleLogic;
import com.deco.logic.store.StoreJoinLogic;
import com.deco.logic.store.StoreShopLogic;
import com.free.common.vo.ResultModel;

import java.util.List;
import java.util.Map;

@Service
public class DicVehicleService {
	   /*========================================================================*
     *                         Public Fields (公共属性)
     *========================================================================*/

    /*========================================================================*
     *                         Private Fields (私有属性)
     *========================================================================*/
    
    @Autowired
    private DicVehicleLogic dicVehicleLogic;
    /*========================================================================*
     *                         Construct Methods (构造方法)
     *========================================================================*/

    /*========================================================================*
     *                         Public Methods (公有方法)
     *========================================================================*/

    
    public DicVehicleVo getDicVehicle(int id){
    	return dicVehicleLogic.getDicVehicle(id);
    }
    
    public ResultModel save(DicVehicleVo dicVehicleVo){
    	if(dicVehicleVo.getId() == 0L){
    		dicVehicleLogic.create(dicVehicleVo);
    	}
    	else{
    		dicVehicleLogic.update(dicVehicleVo);
    	}
    	return ResultModel.success();
    }

	public ResultModel delete(int id) {
		dicVehicleLogic.delete(id);
	  	return ResultModel.success();
	}

	public List<Map<String,Object>> carList(Map<String,Object> params){
		return dicVehicleLogic.carList(params);
	}


	public List<Map<String,Object>> carList1(DicVehicleVo params){
		return dicVehicleLogic.carList1(params);
	}


	public List<Map<String,Object>> carList2(DicVehicleVo params){
		return dicVehicleLogic.carList2(params);
	}


	public List<DicVehicleVo> phonePartList(DicVehicleVo params){
		return dicVehicleLogic.phonePartList(params);
	}


	public List<Map<String,Object>> selectTyreList(Map<String,Object> params){
		return dicVehicleLogic.selectTyreList(params);
	}


	public List<Map<String,Object>> selectTyreList2(Map<String,Object> params){
		return dicVehicleLogic.selectTyreList2(params);
	}


	public List<Map<String,Object>> selectTyreList4(Map<String,Object> params){
		return dicVehicleLogic.selectTyreList4(params);
	}


	public List<Map<String,Object>> selectTyreList5(Map<String,Object> params){
		return dicVehicleLogic.selectTyreList5(params);
	}


	public List<Map<String,Object>> selectTyreList6(Map<String,Object> params){
		return dicVehicleLogic.selectTyreList6(params);
	}


	public List<Map<String,Object>> selectTyreList1(Map<String,Object> params){
		return dicVehicleLogic.selectTyreList1(params);
	}


	public List<DicVehicleVo> selectTyreList3(DicVehicleVo params){
		return dicVehicleLogic.selectTyreList3(params);
	}


	public List<Map<String,Object>> getCd(Map<String,Object> params){
		return dicVehicleLogic.getCd(params);
	}


	public List<Map<String,Object>> getMdCd(Map<String,Object> params){
		return dicVehicleLogic.getMdCd(params);
	}


	public List<DicVehicleVo> selectAbleProd(DicVehicleVo params){
		return dicVehicleLogic.selectAbleProd(params);
	}


	public List<DicVehicleVo> selectAbleProdSGMD(DicVehicleVo params){
		return dicVehicleLogic.selectAbleProdSGMD(params);
	}


	public List<Map<String,Object>> selectMdAbleProd(Map<String,Object> params){
		return dicVehicleLogic.selectMdAbleProd(params);
	}


	public List<Map<String,Object>> selectMdAbleProdSGMD(Map<String,Object> params){
		return dicVehicleLogic.selectMdAbleProdSGMD(params);
	}


	public List<DicVehicleVo> resList(DicVehicleVo params){
		return dicVehicleLogic.resList(params);
	}


	public List<Map<String,Object>> resList1(Map<String,Object> params){
		return dicVehicleLogic.resList1(params);
	}


	public List<DicVehicleVo> partList(DicVehicleVo params){
		return dicVehicleLogic.partList(params);
	}


	public List<Map<String,Object>> desList(Map<String,Object> params){
		return dicVehicleLogic.desList(params);
	}


	public List<DicVehicleVo> desList1(DicVehicleVo params){
		return dicVehicleLogic.desList1(params);
	}


	public List<DicVehicleVo> desList2(DicVehicleVo params){
		return dicVehicleLogic.desList2(params);
	}


	public List<DicVehicleVo> selectVehicleNoByPart(DicVehicleVo params){
		return dicVehicleLogic.selectVehicleNoByPart(params);
	}


	public List<Map<String,Object>> selectVehicleNoByPart1(Map<String,Object> params){
		return dicVehicleLogic.selectVehicleNoByPart1(params);
	}


	public List<Map<String,Object>> selectPartList1(Map<String,Object> params){
		return dicVehicleLogic.selectPartList1(params);
	}


	public List<DicVehicleVo> selectPartList(DicVehicleVo params){
		return dicVehicleLogic.selectPartList(params);
	}


	public List<DicVehicleVo> selectBrandList(Map<String,Object> params){
		return dicVehicleLogic.selectBrandList(params);
	}


	public List<DicVehicleVo> selectBrandList1(Map<String,Object> params){
		return dicVehicleLogic.selectBrandList1(params);
	}


	public List<DicVehicleVo> selectModelList(Map<String,Object> params){
		return dicVehicleLogic.selectModelList(params);
	}


	public List<DicVehicleVo> selectModelList1(Map<String,Object> params){
		return dicVehicleLogic.selectModelList1(params);
	}


	public List<DicVehicleVo> selectDetType(Map<String,Object> params){
		return dicVehicleLogic.selectDetType(params);
	}


	public List<DicVehicleVo> selectDetType1(Map<String,Object> params){
		return dicVehicleLogic.selectDetType1(params);
	}


	public List<DicVehicleVo> selectModelYearList(Map<String,Object> params){
		return dicVehicleLogic.selectModelYearList(params);
	}


	public List<DicVehicleVo> selectDisplacementl(Map<String,Object> params){
		return dicVehicleLogic.selectDisplacementl(params);
	}


	public List<DicVehicleVo> selectDisplacementl1(Map<String,Object> params){
		return dicVehicleLogic.selectDisplacementl1(params);
	}


	public List<DicVehicleVo> selectEngineList(String param){
		return dicVehicleLogic.selectEngineList(param);
	}


    /*========================================================================*
     *                         Private Methods (私有方法)
     *========================================================================*/

}
